<?php require(dirname(__FILE__).'/inc/config.inc.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/mgr.func.js"></script>
</head>
<body>
<div class="mgr_header"> <span class="title">语言项管理</span><span class="mgr_btn"><a href="lang_add.php" style="margin-right:50px;">添加语言项</a></span> <span class="mgr_btn"><a href="lang_save.php?action=createphp" style="margin-right:10px;">生成语言文件</a></span><span class="reload"><a href="javascript:location.reload();">刷新</a></span> </div>
<form name="form" id="form" method="post" action="">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mgr_table">
		<tr align="center" class="thead">
			<td width="5%" height="30"><input type="checkbox" name="checkid" onclick="CheckAll(this.checked);"></td>
			<td width="25%" class="title2" >变量名称</td>
            <td width="20%" class="title2" >中文说明</td>
			<td width="25%" class="title2" >英文说明</td>
			<td width="30%">操作</td>
		</tr>
	</table>
	<?php
		global $dosql,$cfg_siteid;
		$dosql->Execute("SELECT * FROM `#@__lang` ORDER BY id ASC");
		while($row = $dosql->GetArray())
		{
			
	?>
	<div rel="rowpid_<?php echo $row['id']; ?>">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mgr_table">
			<tr align="center" class="mgr_tr">
				<td width="5%" height="32">
                <input type="checkbox" name="checkid[]" id="checkid[]" value="<?php echo $row['id']; ?>" />
               </td>
				<td width="25%" align="left">
				<?php echo $row['lang_key'];?>
				</td>
				<td width="20%"  class="title2"><?php echo $row['cn_name'];?></td>
				<td width="25%"  class="title2"><?php echo $row['en_name'];?></td>
				<td width="30%" class="action"><span><a href="lang_update.php?id=<?php echo $row['id']; ?>">修改</a></span> | <span><a href="lang_save.php?action=delitem&id=<?php echo $row['id'] ?>" onclick="return ConfDel(2);">删除</a></span>
				</td>
			</tr>
		</table>
	</div>
	<?php


	}
	?>
</form>

<div class="mgr_divb">
	<div class="selall"><span>选择：</span> <a href="javascript:CheckAll(true);">全部</a> - <a href="javascript:CheckAll(false);">无</a> - <a href="javascript:SubUrlParam('lang_save.php?action=delallitem');" onclick="return ConfDelAll(0);">删除</a>　<span>操作：</span> <a href="javascript:ShowAllRows();">展开</a> - <a href="javascript:HideAllRows();">隐藏</a></div>
	<span class="mgr_btn"><a href="lang_add.php">添加语言项</a></span> </div>
<div class="page_area">
	<div class="page_info">共有<span><?php echo $dosql->GetTableRow('#@__lang',$cfg_siteid); ?></span>条记录</div>
</div>
</body>
</html>